package cn.ssj.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;

/**
 * Created by Administrator on 2017-09-07.
 */
@Controller
@EnableAutoConfiguration
//@RequestMapping("/newsDetail")
public class PageController{

    @RequestMapping("/detail")
    public String page(){
        System.out.println(111);
        return "newsDetail";
    }
    @RequestMapping("/1")
    public String page1(){
        System.out.println(222);
        return "front/newsDetail";
    }
}
